//
//  GGvfdgtgViewController.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "GGvfdgtgViewController.h"

@interface GGvfdgtgViewController () <
UITableViewDataSource,
UITableViewDelegate
>

/// fewqf
@property (nonatomic, strong) UIPageControl *fwfqwe;

/// fasdfqewscvv数据源
@property (nonatomic, strong) NSMutableArray *data;

@property (nonatomic, strong) UITableView *fasdfqewscvv;

@end

@implementation GGvfdgtgViewController

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Event Response
- (void)fwfqweValueChanged:(UIPageControl *)sender {
	
}

#pragma mark - # Life Cycle
- (void)loadView {
	[super loadView];
	[self.fasdfqewscvv addSubview:self.fwfqwe];
	[self.view addSubview:self.fasdfqewscvv];
}

- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark - # Getter
- (UIPageControl *)fwfqwe {
	if (!_fwfqwe) {
		_fwfqwe = [[UIPageControl alloc] init];
		[_fwfqwe setTag:23];
		[_fwfqwe addTarget:self action:@selector(fwfqweValueChanged:) forControlEvents:UIControlEventValueChanged];
		[_fwfqwe setNumberOfPages:23];
	}
	return _fwfqwe;
}

- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)fasdfqewscvv {
	if (!_fasdfqewscvv) {
		_fasdfqewscvv = [[UITableView alloc] init];
		[_fasdfqewscvv setDelegate:self];
		[_fasdfqewscvv setDataSource:self];
	}
	return _fasdfqewscvv;
}

@end
